package cn.miaoyao.miaoyaoms;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.CrossOrigin;

@EnableCaching //开启缓存
@SpringBootApplication
@EnableTransactionManagement
@CrossOrigin
@MapperScan("cn.miaoyao.miaoyaoms.mapper")
public class MiaoyaomsApplication {
    public static void main(String[] args) {
        SpringApplication.run(MiaoyaomsApplication.class, args);
    }
}
